//
//  ZGLBannerView.h
//  ZeegingLottery
//
//  Created by 李曌 on 2018/11/7.
//  Copyright © 2018 蒂埃里. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol ZGLBannerViewDelegate;
@interface ZGLBannerView : UIView

@property (nonatomic, weak) id <ZGLBannerViewDelegate> delegate;

+ (instancetype)initWithFrame:(CGRect)frame hasTimer:(BOOL) hastimer interval:(NSUInteger) inter placeHolder:(UIImage*) image;

//图片数据源
- (void) setupWithArray:(NSArray *)array;


@end


@protocol ZGLBannerViewDelegate <NSObject>

//代理点击事件
- (void)bannerTouch:(ZGLBannerView *)bannerView Index:(NSUInteger )index;

@end

NS_ASSUME_NONNULL_END
